package com.lingjoin.manager;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tk.mybatis.spring.annotation.MapperScan;


@SpringBootApplication
@MapperScan(basePackages = "com.lingjoin.manager.mybatis.mapper")
public class LingjoinmanagerApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(LingjoinmanagerApplication.class, args);
		 System.out.println("服务启动完成!");
	}

    /**
     * 如此配置打包后可以用tomcat下使用
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(LingjoinmanagerApplication.class);
    }

}
